	
		<h3 class="name">
		{{__($step_info['Flowstep']['name'])}}
		
		{{if in_array('add',$allowactions)}}
			<a class="btn btn-primary pull-right" href="{{$this->Html->url('/flowsteps/operate/'.$step_id.'/'.$item['id'])}}?action=add" title="{{$step_info['Flowstep']['name']}}">
			<i class="glyphicon glyphicon-plus"></i> &nbsp;{{__('Add')}}</a>
		{{/if}}
		</h3>  
		
			<div class="detail btline2 clearfix ui-portlet-list ">
				
			{{loop $datalist $item_all}}
				<div class="col-md-4">
				<?PHP $item = $item_all[$flow_model];
					$slug = $step_info['Flowstep']['slug'] ? $step_info['Flowstep']['slug'] : $step_info['Flowstep']['id'];
				?>
				<a href="{{$this->Html->url('/flowsteps/operate/'.$slug.'/'.$item['id'])}}?action=view" >
					{{$this->Html->image($item['coverimg'])}}
					<p>{{$item['name']}}</p>
				</a>
					<div>
						<p><a class="btn btn-primary" href="{{Router::url('/flowsteps/operate/projects')}}?team_id={{$item['id']}}">{{__('Team Projects')}}</a></p>
					{{loop $allowactions $action}}
						<?php if($action == 'add') continue;?>
					<a href="{{$this->Html->url('/flowsteps/operate/'.$slug.'/'.$item['id'])}}?action={{$action}}" title="{{$step_info['Flowstep']['name']}}">{{__($action)}}</a>
					{{/loop}}
					
						
		
					</div>
				</div>
			{{/loop}}
			</div>
			<div>{{$page_navi}}</div>
		
{{$this->Html->css(array('jquery.dataTables.css',));}}
{{$this->Html->script(array('jquery/jquery.dataTables.min.js',))}}
<script>
$(document).ready( function () {
    $('#flowstep-datas-{{$step_id}}').DataTable();
} );
</script>
